<template>
    <div style="margin-bottom:50px">
      <!--<helpHeader></helpHeader>-->
      <div class="leftHeader">
        <img src="../assets/helpServerIcon/red.png" alt="">
        <p>自助服务</p>
      </div>
      <tabbar></tabbar>
      <div class="leftHeader">
        <img src="../assets/helpServerIcon/red.png" alt="">
        <p>帮助中心</p>
      </div>
      <question v-for="(v,id) in help_list" :key='id' :question='v'></question>
      <pageBottom :tel="tel" :time="time"></pageBottom>
    </div>
</template>

<script>
import helpHeader from "../components/help_server/help_header.vue";
import tabbar from "../components/help_server/tabbar.vue";
import question from "../components/help_server/question.vue";
import pageBottom from "../components/help_server/pageBottom.vue";
import request from "@/request/index.js";

// import areaList from '../../../config/area.min.js';
export default {
  name: "help_server",
  components: {
    helpHeader,
    tabbar,
    question,
    pageBottom,
  },
  data() {
    return {
      help_list: [],
      tel: "",
      time: "",
    };
  },
  methods: {
    getLogin: function() {
      var time = Date.parse(new Date()) / 1000;
      if (this._globe.isAndroid) {
        if (window.android != null && typeof window.android != "undefined") {
          window.android.callLogin();
        } else {
          
        }
      }
      if (this._globe.isIos) {
        if (window.webkit) {
          window.webkit.messageHandlers.callAppHelp.postMessage(num);
        }
      }
    }
  },
  created() {
    // this.getGoto();
    var that = this;
    var time = Date.parse(new Date()) / 1000;
    request.getHelp(this)
    if (this.$route.query.id == 0) {
      this.pageTitle = "仅退款";
    } else if (this.$route.query.id == 1) {
      this.pageTitle = "换货";
    } else if (this.$route.query.id == 2) {
      this.pageTitle = "退货退款";
    }
  }
};
</script>

<style lang="scss">
.leftHeader {
  background: #f5f5f5;
  height: 14vw;
  width: 100vw;
  line-height: 14vw;
  display: inline-block;
  img {
    width: 1vw;
    height: 2.67vw;
    float: left;
    // display:inline-block;
    margin: 5.66vw 1vw 0 4vw;
  }
}
</style>
